-----------------------------------------------------------
-- set Font
-----------------------------------------------------------
vim.api.nvim_create_autocmd({'UIEnter'}, {
    callback = function(event)
        local client = vim.api.nvim_get_chan_info(vim.v.event.chan).client
        if client ~= nil and client.name == "Firenvim" then
            vim.api.nvim_exec([[:set guifont=Nerd:h13]], false)
            vim.api.nvim_exec([[:set syntax=c]], false)
        end
    end
})
vim.api.nvim_create_autocmd({'UILeave'}, {
    callback = function(event)
        local client = vim.api.nvim_get_chan_info(vim.v.event.chan).client
        if client ~= nil and client.name == "Firenvim" then
        end
    end
})
